package com.zyylr.classroomreservationsystem.bean;

import java.io.Serializable;
import java.util.List;

public class Building implements Serializable {
    private int id;
    private String name;
    private List<Classroom> classrooms;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Classroom> getClassrooms() {
        return classrooms;
    }

    public void setClassrooms(List<Classroom> classrooms) {
        this.classrooms = classrooms;
    }

    @Override
    public String toString() {
        return "Building{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", classrooms=" + classrooms +
                '}';
    }
}
